package top.infopub.mgr.cap.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import top.infopub.generic.GenericDao;
import top.infopub.generic.GenericServiceImpl;
import top.infopub.mgr.cap.dao.ContractBankDao;
import top.infopub.mgr.cap.domain.ContractBankDomain;
import top.infopub.model.cap.ContractBank;
import top.infopub.mgr.cap.service.ContractBankService;

@Service
public class ContractBankServiceImpl extends GenericServiceImpl<ContractBank, String> implements
		ContractBankService {

	@Autowired
	private ContractBankDao contractBankDao;
	
	@Override
	public GenericDao<ContractBank, String> getDao() {
		return contractBankDao;
	}

    @Override
    public List<ContractBankDomain> getBankDomainByContractId(String contractId) {
        return contractBankDao.getBankDomainByContractId(contractId);
    }

}